import axios from './request.js'

// 获取歌曲播放地址
export const reqSongUrl = id => axios.post(`song/enhance/player/url?ids=[${id}]&br=128000`)

// 获取歌曲详情
export const reqSongDetail = params => axios.post('v3/song/detail', params)

// 获取热词
export const reqSearchHot = () => axios.post('search/hot?type=1111')

// 歌词
export const reqLyric = id => axios.post(`song/lyric?id=${id}&lv=-1&kv=-1&tv=-1`)

// 专辑内容
export const reqAlbum = id => axios.post(`v1/album?id=${id}`)

// 获取播放列表详情
export const reqPlaylistDetail = params => axios.post('v3/playlist/detail', params)

// 获取轮播图数据
export const reqBanner = params => axios.post('v2/banner/get', params)

// 获取推荐歌单
export const reqPersonalizedPlaylist = params => axios.post('personalized/playlist', params)

// 获取最新歌曲
export const reqPersonalizedNewsong = params => axios.post('personalized/newsong', params)

// 获取推荐MV
export const reqPersonalizedMv = () => axios.post('personalized/mv')

// 获取歌曲播放地址
export const reqMusicUrl = id => axios.post(`song/enhance/player/url?ids=[${id}]&br=128000`)

// 获取精品歌单
export const reqTopPlaylist = param => axios.post('playlist/highquality/list', param)

// 获取歌单列表
export const reqPlaylist = param => axios.post('playlist/list', param)

// 获取最新音乐
export const reqNewSongs = param => axios.post('v1/discovery/new/songs', param)

// 获取Mv列表
export const reqMvs = param => axios.post('mv/all', param)

// 查询
export const reqSearch = param => axios.post('search/get', param)

// 获取歌单评论
export const reqPlaylistComments = (id, param) => axios.post(`v1/resource/comments/A_PL_0_${id}`, param)

// 获取MV播放地址
export const reqMvUrl = param => axios.post(`song/enhance/play/mv/url`, param)

// 获取MV详情
export const reqMvDetail = param => axios.post(`mv/detail`, param)

// 获取歌手头像
export const reqArtistIcon = (id, param) => axios.post(`v1/artist/${id}`, param)

// 获取MV评论
export const reqMvComment = (id, param) => axios.post(`v1/resource/comments/R_MV_5_${id}`, param)

// 获取相关MV
export const reqSimiMvUrl = param => axios.post('discovery/simiMV', param)

// 获取歌曲评论
export const reqSongComment = (id, param) => axios.post(`v1/resource/comments/R_SO_4_${id}`, param)

// 相似音乐
export const reqSimiSongs = id => axios.get(`v1/discovery/simiSong?songid=${id}&limit=5`)

// 获取相似歌单
export const reqSimiPlaylists = id => axios.get(`discovery/simiPlaylist?songid=${id}&limit=3`)
